package com.hui.api.client.post.fallback;



import com.hui.api.client.post.PostClient;
import com.hui.model.mess.ArticleVisitStreamMess;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

@Slf4j
public class PostClientFallback implements FallbackFactory<PostClient> {
    @Override
    public PostClient create(Throwable cause) {
        log.error("查询用户服务出现异常", cause);
        return new PostClient() {
            @Override
            public void saveCommentCount(ArticleVisitStreamMess mess) {
                return ;
            }
        };
    }
}
